/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package org.sbbs.netty.singlepoint.server;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 *
 * @author MACHENIKE
 * @单机最大连接数测试：https://www.jianshu.com/p/490e2981545c
 * windows下调整：https://blog.csdn.net/huangjin0507/article/details/52233443，
 * https://blog.csdn.net/gzh0222/article/details/6911676
 *
 */
@SpringBootApplication
public class NettyserverApplication {

    private static final int BEGIN_PORT = 8000;
    private static final int N_PORT = 100;

    public static void main(String[] args) {
        SpringApplication.run(NettyserverApplication.class, args);
        new Server().start(BEGIN_PORT, N_PORT);
    }
}
